#include<iostream>
#include "./src/FileHelper.hpp"
using namespace std;


// 词法分析器
extern void Scanner();
extern FileHelper fh;

// 项目入口
int main(int argc, char *argv[]) {
  FILE* Infile;

  if ((Infile = fopen(argv[1], "r")) == NULL) {
    cout << "未找到文件" << endl;
    exit(1);
  }

  fh = FileHelper(Infile);

  Scanner();

  fclose(Infile);
  return 0;
}
